package com.travel.entity.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;

/**
 * @Author:Jasenon_ce
 * @Date: 2025/03/16/下午5:22
 */
@Data
public class TravelPlanDTO {

    @NotBlank
    @ApiModelProperty("主题")
    private String title;

    @NotBlank
    @ApiModelProperty("需求")
    private String text;

    @NotNull
    @ApiModelProperty("旅行开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;

    @NotNull
    @ApiModelProperty("旅行结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;
}
